home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Frameworks / Sprocket Framework DR2 / Sprocket Framework Interfaces / AEHandling.h < prev    next >
Text File  |  1996-06-06  |  2KB  |  56 lines

  1. // Sprocket Framework header file
  2. // AEHandling.h
  3.  
  4.  
  5.  
  6. #ifndef        _APPLEEVENTHANDLING_
  7. #define        _APPLEEVENTHANDLING_
  8.  
  9. #ifndef        __APPLEEVENTS__
  10. #include    <AppleEvents.h>
  11. #endif
  12.  
  13. #ifndef        __OCESTANDARDMAIL__
  14. #include    <OCEStandardMail.h>
  15. #endif
  16.  
  17.  
  18. void                InitAppleEventRoutines(void);
  19. OSErr                CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  20. OSErr                ChooseApplicationAsAETarget(AEAddressDesc *targetDesc, StringPtr prompt);
  21.  
  22. extern AEIdleUPP    StandardAEIdleUPP;
  23. extern AEDesc        gThisProcessDesc;
  24.  
  25. //    Handlers for the Required Suite:
  26.  
  27. typedef OSErr        (*EachDocumentProcPtr)(FSSpec *aFile,void * param);
  28. OSErr                ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  29.  
  30. pascal OSErr        HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  31. pascal OSErr        HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  32. pascal OSErr        HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  33. pascal OSErr        HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  34.  
  35. //  Sprocket Suite
  36.  
  37. OSErr                SendCommandToSelf(CommandID theCommand);
  38. pascal OSErr        HandleSprocketCommand(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  39.  
  40. //    Display Manager:
  41.  
  42. pascal OSErr        HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  43.  
  44.  
  45. #if    qInlineInputAware
  46.  
  47. //    Text Services Manager:
  48.  
  49. pascal OSErr        HandleTextServicesUpdateActiveInputArea(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  50. pascal OSErr        HandleTextServicesPos2Offset(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  51. pascal OSErr        HandleTextServicesOffset2Pos(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  52.  
  53. #endif
  54.  
  55. #endif
  56.